<?php
if (!defined('IN_WONDERSHARE'))
{
	die('Hacking attempt');
}
class ProductAttributesModule 
{
   var $db;
 
   function __construct()
   {
   	$this->db = $GLOBALS['db'];
   }
   function get_products_attributes_info($sql)
   { 
   	$date = array();
	$result = $this->db->query($sql);
	while($row = $this->db->fetch_array($result))
	{

	   $row['add_time'] = $row['add_time']>0?date('Y-m-d H:i',$row['add_time']):'';
	   $row['update_time'] = $row['update_time']>0?date('Y-m-d H:i',$row['update_time']):'';
	   $date[] = $row;
	}	
	return  $date;
   }
   function  change_info($sql)
   {
   	$affect = $this->db->query($sql);
   	return  $affect;
   }
}

?>